/**
 Copyright (C) 2013 Yuyao Liang

 This source code is release under the BSD License.

 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the license for more details.

 Created on Jan 9, 2014 2:30:47 PM
 */
package com.googlecode.backtest.display;

import java.util.HashMap;
import java.util.Map;

import com.googlecode.backtest.dataset.IBackTestStockDataset;
import com.googlecode.backtest.dataset.manager.DataReadyEvent;
import com.googlecode.backtest.rule.IBackTestParameters;

/**
 * @author lianyuy
 * 
 */
public class BackTestChartDisplay extends
		BackTestDisplay<IBackTestStockDataset, IBackTestParameters> {

	private final String ID = getClass().getName();
	private final String VERSION = Messages
			.getString("BackTestChartDisplay.VERSION"); //$NON-NLS-1$
	private final String KEY = Messages.getString("BackTestChartDisplay.KEY"); //$NON-NLS-1$
	private Map<String, Object> dataset = new HashMap<String, Object>();

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.srclib.base.IDable#getID()
	 */
	@Override
	public String getID() {
		return ID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.srclib.base.Versionable#getVersion()
	 */
	@Override
	public String getVersion() {
		return VERSION;
	}

	/* (non-Javadoc)
	 * @see com.googlecode.backtest.dataset.manager.DataReadyEventListener#OnDataReady(com.googlecode.backtest.dataset.manager.DataReadyEvent)
	 */
	@Override
	public void OnDataReady(DataReadyEvent event) {
		String key = event.getKey();
		dataset.put(key, (Object) event.getManager().getData(key));

		// TODO Auto-generated method stub
		
	}

}
